Fixes bash rm command errors when deleting directories by using the -rf flags for recursive and forced removal.